package com.ruoyi.vpn.mapper;

import java.util.List;
import com.ruoyi.vpn.domain.VpnCarmi;
import com.ruoyi.vpn.domain.dto.AddManyChamiDTO;
import org.apache.ibatis.annotations.Mapper;

/**
 * carmiMapper接口
 * 
 * @author Edwin
 * @date 2024-01-08
 */
@Mapper
public interface VpnCarmiMapper 
{
    /**
     * 查询carmi
     * 
     * @param carmiId carmi主键
     * @return carmi
     */
    public VpnCarmi selectVpnCarmiByCarmiId(Long carmiId);

    /**
     * 查询carmi列表
     * 
     * @param vpnCarmi carmi
     * @return carmi集合
     */
    public List<VpnCarmi> selectVpnCarmiList(VpnCarmi vpnCarmi);

    /**
     * 新增carmi
     * 
     * @param vpnCarmi carmi
     * @return 结果
     */
    public int insertVpnCarmi(VpnCarmi vpnCarmi);

    /**
     * 修改carmi
     * 
     * @param vpnCarmi carmi
     * @return 结果
     */
    public int updateVpnCarmi(VpnCarmi vpnCarmi);

    /**
     * 删除carmi
     * 
     * @param carmiId carmi主键
     * @return 结果
     */
    public int deleteVpnCarmiByCarmiId(Long carmiId);

    /**
     * 批量删除carmi
     * 
     * @param carmiIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVpnCarmiByCarmiIds(Long[] carmiIds);


    /**
     * 批量添加carmi
     *
     * @param addManyChamiDTO 需要添加集合
     * @return 结果
     */
    public int insertManyVpnCarmi(AddManyChamiDTO addManyChamiDTO);

    public List<VpnCarmi> selectVpnCarmiListStrict(VpnCarmi vpnCarmi);
}
